package com.tiger.cloud.model.crm;

import java.math.BigDecimal;
import java.sql.Timestamp;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tiger.cloud.common.mybatis.TigerBaseEntity;
import com.tiger.cloud.enums.DeleteEnum;
import com.tiger.cloud.enums.UserStatusEnum;
/**
 * 
 * crm_user_account-用户账户
 *
 */
public class UserAccount extends TigerBaseEntity{

	private static final long serialVersionUID = 1L;
    
	/**
	 * 
	 */
    private Long userId;
	/**
	 * 余额
	 */
    private BigDecimal balance;
	/**
	 * 充值
	 */
    private BigDecimal recharge;
	/**
	 * 积分
	 */
    private Long integral;
	/**
	 * 用户状态  0:待审核、1:正常、2:冻结（和用户状态同步）
	 */
    private UserStatusEnum status;
	/**
	 * 是否删除, 0:正常,1:删除
	 */
    private DeleteEnum isDelete=DeleteEnum.NOMAIL;
	/**
	 * 
	 */
    private Timestamp createTime;
	/**
	 * 
	 */
    private Timestamp lastUpdateTime;
    
    public UserAccount(){
    
    }
    
    public Long getUserId() {
        return this.userId;
    }
    
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public BigDecimal getBalance() {
        return this.balance;
    }
    
    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }
    public BigDecimal getRecharge() {
        return this.recharge;
    }
    
    public void setRecharge(BigDecimal recharge) {
        this.recharge = recharge;
    }
    public Long getIntegral() {
        return this.integral;
    }
    
    public void setIntegral(Long integral) {
        this.integral = integral;
    }
    public UserStatusEnum getStatus() {
        return this.status;
    }
    
	public DeleteEnum getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(DeleteEnum isDelete) {
		this.isDelete = isDelete;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public Timestamp getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(Timestamp lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public void setStatus(UserStatusEnum status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}